package com.dongqi.myblog.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dongqi.myblog.po.TType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dongqi.myblog.po.vo.TypeQuery;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dongqi
 * @since 2020-08-03
 */
public interface TTypeService extends IService<TType> {

    int saveType(TType type);

    TType getTypeById(Long id);

    Page<TType> pageType(Long pageNo,Long pageSize);

    int updateType(TType type);

    int deleteType(Long id);

    Boolean getTypeByName(TType type);

    List<TypeQuery> getTypeIndex(Integer pageSize);

    List<TypeQuery> getAllType();
}
